﻿namespace Resonator.Domain.Models
{
	using System;
	using System.IO;

	[Serializable]
	public class ResourceStream
	{
		private readonly string _name;
		private readonly Stream _stream;

		public ResourceStream(string name, Stream stream)
		{
			if( name == null ) throw new ArgumentNullException( "name" );
			if( stream == null ) throw new ArgumentNullException( "stream" );

			_name = name;
			_stream = stream;
		}

		public virtual Stream Stream
		{
			get { return _stream; }
		}

		public virtual string Name
		{
			get { return _name; }
		}
	}
}